import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './assets/css/main.css'
import 'swiper/css'
// import './utils/rem.js'
import App from './App.vue'
import router from './router'
import FastClick from 'fastclick'
import piniaPersist from 'pinia-plugin-persist'
import Components from './components/index'

FastClick(document.body); // 解决移动端click 200-300ms的延迟触发问题
console.log('import.meta', import.meta.env)

const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPersist); // pinia状态持久化

app.use(Components)
  .use(pinia)
  .use(router)

app.mount('#app')
